<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "j_goods_line_sync_copy".
 *
 * @property string $id
 * @property string $item_no
 * @property string $item_desc
 * @property string $inv_status
 * @property string $inv_desc
 * @property string $item_sort
 * @property string $itemtype
 * @property string $item_group
 * @property string $swatch_no
 * @property string $item_spec
 * @property string $item_flowers
 * @property string $item_stuff
 * @property string $item_u_m
 * @property string $brand_code
 * @property string $brand_ename
 * @property string $brand_cname
 * @property string $sample_num
 * @property string $getcodeno
 * @property string $categoryno
 * @property string $item_sf
 * @property string $vendor_no
 * @property string $vendormodel
 * @property string $minin_qty
 * @property string $color
 * @property string $mechanism
 * @property string $isstandard
 * @property string $item_country
 * @property string $item_state
 * @property string $item_meter
 * @property double $list_price
 * @property string $item_xc
 * @property string $item_xc_plus
 * @property string $item_price
 * @property string $item_date
 * @property string $is_vip
 * @property string $is_parent
 * @property string $parent_item
 * @property string $itemname
 * @property string $fabricno
 * @property string $itemmodel
 * @property string $itemseries
 * @property string $itemdesigner
 * @property string $reforminfo
 * @property string $vendorcode
 * @property string $is_pattern
 * @property string $is_longitem
 * @property string $is_senior
 * @property string $is_configbom
 * @property string $is_mts
 * @property string $curinccode
 * @property string $preinccode
 * @property string $showd01
 * @property string $showd02
 * @property string $comments
 * @property string $functionality
 * @property string $isunique
 * @property string $isnewitem
 * @property string $issold
 * @property string $flowertype
 * @property string $itememployee
 * @property string $wfixedhigh
 * @property string $minfabricwidth
 * @property string $maxflowerrepeat
 * @property string $itemspecialmaterial
 * @property string $accessories
 * @property string $version
 * @property integer $consult
 * @property string $consult_person
 * @property string $create_time
 * @property string $update_time
 */
class GoodsLineSyncCopy extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'j_goods_line_sync_copy';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['item_country'], 'required'],
            [['item_meter', 'list_price', 'item_xc', 'item_xc_plus', 'item_price', 'minfabricwidth', 'maxflowerrepeat'], 'number'],
            [['item_date', 'version', 'create_time', 'update_time'], 'safe'],
            [['consult'], 'integer'],
            [['item_no', 'swatch_no', 'item_country', 'item_state', 'parent_item'], 'string', 'max' => 30],
            [['item_desc', 'inv_desc', 'accessories'], 'string', 'max' => 80],
            [['inv_status', 'item_u_m', 'brand_code', 'item_sf'], 'string', 'max' => 4],
            [['item_sort', 'itemtype', 'item_group', 'getcodeno', 'categoryno', 'curinccode', 'preinccode', 'isunique', 'isnewitem', 'issold', 'wfixedhigh'], 'string', 'max' => 10],
            [['item_spec', 'minin_qty', 'flowertype'], 'string', 'max' => 20],
            [['item_flowers', 'brand_ename', 'brand_cname', 'sample_num', 'mechanism', 'itemmodel', 'vendorcode', 'showd01', 'showd02', 'itememployee'], 'string', 'max' => 50],
            [['item_stuff', 'vendormodel', 'itemname', 'functionality'], 'string', 'max' => 200],
            [['vendor_no'], 'string', 'max' => 6],
            [['color', 'fabricno', 'reforminfo', 'comments', 'itemspecialmaterial'], 'string', 'max' => 500],
            [['isstandard', 'is_vip', 'is_parent', 'is_pattern', 'is_longitem', 'is_senior', 'is_configbom', 'is_mts'], 'string', 'max' => 1],
            [['itemseries', 'itemdesigner'], 'string', 'max' => 250],
            [['consult_person'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增长',
            'item_no' => '物料号',
            'item_desc' => '物料描述',
            'inv_status' => '库存状态',
            'inv_desc' => '库存状态描述',
            'item_sort' => '商品分类(ItemSort)',
            'itemtype' => '商品大类',
            'item_group' => '产品组',
            'swatch_no' => '壁纸样册编号',
            'item_spec' => '规格',
            'item_flowers' => '花距',
            'item_stuff' => '材质',
            'item_u_m' => '单位',
            'brand_code' => '品牌编码',
            'brand_ename' => '品牌英文名',
            'brand_cname' => '品牌中文名',
            'sample_num' => '2加2编码',
            'getcodeno' => '获取方式编码',
            'categoryno' => '商品分类码',
            'item_sf' => '现货/期货',
            'vendor_no' => '供应商编码',
            'vendormodel' => '商品原始型号',
            'minin_qty' => '最小起订量',
            'color' => '色号',
            'mechanism' => '商品机构',
            'isstandard' => '是否套规格产品',
            'item_country' => '物料国别',
            'item_state' => '物料产地',
            'item_meter' => '每销售单位平方米数',
            'list_price' => '商品售价',
            'item_xc' => '商品成本',
            'item_xc_plus' => '商品成本+安全系数',
            'item_price' => '商品原价',
            'item_date' => '物料建立日期',
            'is_vip' => '是否VIP商品',
            'is_parent' => '是否母物料号',
            'parent_item' => '母物料号',
            'itemname' => '品名',
            'fabricno' => '搭配号',
            'itemmodel' => '型号',
            'itemseries' => '商品系列号',
            'itemdesigner' => '商品设计师',
            'reforminfo' => '改制信息',
            'vendorcode' => '供应商简称',
            'is_pattern' => '是否打样品',
            'is_longitem' => '是否打样品长物料号',
            'is_senior' => '是否高级定制',
            'is_configbom' => '配置搭配的25BOM',
            'is_mts' => '是否备库存',
            'curinccode' => '当前业态',
            'preinccode' => '之前业态',
            'showd01' => '展示地点D01',
            'showd02' => '展示地点D02',
            'comments' => 'P1备注',
            'functionality' => '家具功能',
            'isunique' => '是否独家花版',
            'isnewitem' => '是否新品',
            'issold' => '是否已销',
            'flowertype' => '对花方式',
            'itememployee' => '商品专员',
            'wfixedhigh' => '定高/门幅',
            'minfabricwidth' => '最小门幅',
            'maxflowerrepeat' => '最大花距',
            'itemspecialmaterial' => '特殊材质',
            'accessories' => '配件信息',
            'version' => '时间戳',
            'consult' => '是否查阅0:未查阅;1:已查阅',
            'consult_person' => '查阅人',
            'create_time' => '同步时间',
            'update_time' => '更新时间',
        ];
    }
}
